#include "gtest/gtest.h"

#include "helper/object/ObjectFactory.h"

using helper::object::DefaultObjectFactory;
// applying singleton base class to object::DefaultObjectFactory
TEST(DefaultObjectFactoryTest, testSingleton){
    ASSERT_TRUE( nullptr != DefaultObjectFactory::instance().getPtr());

    void * expect = &DefaultObjectFactory::instance().get();
    ASSERT_EQ(expect, &DefaultObjectFactory::instance().get());
}
